//
//  AbsentClassViewController.m
//  BOSS-SOOC
//
//  Created by apple on 16/9/6.
//  Copyright © 2016年 Gcx. All rights reserved.
//

#import "AbsentClassViewController.h"
#import "AbsentModel.h"
#import "AbsentClassTableView.h"

@interface AbsentClassViewController (){

    AbsentModel *_myModel;
    NSString *_kcmc;
    NSString *_kcid;
}

@end

@implementation AbsentClassViewController

- (void)viewDidLoad{

    [super viewDidLoad];
    
    [self setNavBarTitle:@"缺席课堂"];
    
    AbsentClassTableView *table = [[AbsentClassTableView alloc]initWithFrame:CGRectMake(0, 64, SIZEWIDTH, SIZEHEIGHT - 64) style:UITableViewStyleGrouped];
    table.kcmc = _kcmc;
    table.kcid = _kcid;
    table.xh   = _myModel.xh;

    [self.view addSubview:table];
}

-(id)getModel:(AbsentModel *)absent andKcid:(NSString *)kcid andKcmc:(NSString *)kcmc{

    _myModel = absent;
    
    _kcid = kcid;
    
    _kcmc = kcmc;
    
    return self;
}




@end
